php remove extension from url

78

rewrite .php to no extension -

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

Comments

Submit
0 Comments